package com.zrf.testchatgpt.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author zrf
 * @since 2023-03-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Detail implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

    private Integer userId;

    private String askquestion;

    private String answerTitle;

    private String answerContent;

    @TableField(value = "create_time",fill = FieldFill.UPDATE)
    private LocalDateTime createTime;

    private String isDelete;
}
